home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 051-075 / disk_075 / comm / makefile < prev    next >
Makefile  |  1992-05-06  |  952b  |  33 lines

  1. # macro for compile flags which loads pre-compiled headers
  2. # add any other flags you might want to definition
  3. # the implied .c to .o rule will include CFLAGS in all compiles
  4.  
  5. CFLAGS=  +iHeaders.pre
  6.  
  7. #this macro defines all the objects :
  8.  
  9. OBJECTS = globals.o   beep.o      keyboard.o  menus.o     phonelib.o \
  10.           serialio.o  timer.o     util.o      xmdmrecv.o  xmdmsend.o \
  11.           Clock.o     wxmdmrecv.o wxmdmsend.o getfile.o   safeclose.o
  12.  
  13. # and now we need our first non-built-in rule to get Headers.pre
  14. # remade. The rule says how to make a .pre file from a .c file
  15.  
  16. .c.pre:
  17.         cc +h$@ $*.c        
  18.  
  19. # this dependency generates the main program also using
  20. # the implied .c to .o rule
  21.  
  22. comm: $(OBJECTS) comm.o
  23.       ln -o RAM:comm comm.o $(OBJECTS) -lc
  24.       C:copy RAM:comm $*
  25.  
  26. # this one says that all those objects depend on these headers
  27. # as well as the implied .c to .o rule:
  28.  
  29. comm.o:      Headers.pre
  30. $(OBJECTS):  Headers.pre
  31.  
  32.  
  33.